<?php
/**
 * Created by PhpStorm.
 * User: papa
 * Date: 18/5/21
 * Time: 15:59
 */

namespace app\api\validate;


class FacePay extends BaseValidate
{

    protected $rule = [
        'coupon_id' => 'isPositiveInteger',
        'points' => 'isPositiveInteger',
        'price' => 'require|isFloatOrpositive',
        'true_price' => 'require|isFloatOrpositive'
    ];


    protected $message = [
        'coupon_id.isPositiveInteger' => 'coupon_id必须是正整数',
        'points.isPositiveInteger' => 'ponits必须是正整数',
        'price.require' => 'price必须存在',
        'price.isFloatOrpositive' => 'price必须是整数和浮点',
        'true_price.require' => 'true_price必须存在',
        'true_price.isFloatOrpositive' => 'true_price必须是整数和浮点',
    ];
}